import Vue from 'vue'
import Element from 'element-ui'
import '../element-variables.scss'
// 全局星空图背景
import VueParticles from 'vue-particles'
// 点击特效
import VueStar from 'vue-star'
// 3d菜单
import Vue3dMenu from 'vue-3d-menu'
// music
import APlayer from '@moefe/vue-aplayer'
// 动画
// import Velocity from '_velocity-animate@2.0.5@velocity-animate'
// editor配置区
import jQuery from 'jquery'
import VueFroala from 'vue-froala-wysiwyg'
// 导入animate.css
import animated from 'animate.css'
// 导入播放器
import VuePlyr from 'vue-plyr'

Vue.use(animated)
// In your main vue file - the one where you create the initial vue instance.

// The second argument is optional and sets the default config values for every player.
Vue.use(VuePlyr, {
  plyr: {
    fullscreen: {
      enabled: true
    }
  },
  emit: ['ended']
})
// Require Froala Editor js file.
require('froala-editor/js/froala_editor.pkgd.min')
// Require Froala Editor css files.
require('froala-editor/css/froala_editor.pkgd.min.css')
require('font-awesome/css/font-awesome.css')
require('froala-editor/js/languages/zh_cn')
require('froala-editor/css/froala_style.min.css')
window.$ = jQuery
Vue.use(VueFroala)
// editor配置区

Vue.use(Vue3dMenu)
Vue.use(Element)
Vue.use(VueParticles)
Vue.component('VueStar', VueStar)
Vue.use(APlayer, {
  defaultCover: 'https://github.com/u3u.png', // set the default cover
  productionTip: false // disable console output
})
